package com.stx.openeyes.utils;

import android.content.Context;
import android.content.SharedPreferences;
import android.provider.Settings;
import android.widget.Toast;

import com.stx.openeyes.MainActivity;
import com.stx.openeyes.SealConst;

public class ContextUtil {

    public static Integer tabIndex = null;

    public static String getCurrentUserToken() {
        Context context = MainActivity.getContext();
        SharedPreferences sharedPreferences = context.getSharedPreferences(SealConst.USER_INFO, 0);
        return sharedPreferences.getString(SealConst.SEALTALK_LOGIN_ID, "");
    }

    public static String getDevicedId() {
        Context context = MainActivity.getContext();
        return Settings.System.getString(context.getContentResolver(), Settings.Secure.ANDROID_ID);
    }
}
